package top.vanchor.myblog2back.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Ding
 * @create 2022/1/10 20:38
 */
@Data
@ApiModel(description = "websocket消息内容")
public class MsgVO {
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "消息")
    private String msg;

    @ApiModelProperty(value = "在线人数")
    private int count;

    @ApiModelProperty(value = "发送时间（时间戳）")
    private String sendTime;

    @ApiModelProperty(value = "发送状态-0未发送-1已发送")
    private Integer sendStatus;

    @ApiModelProperty(value = "消息类别-0聊天信息-1上线通知-2下线通知-3异常警告")
    private Integer msgType;

    @ApiModelProperty(value = "对方是否已读-0未读-1已读")
    private Integer isRead;

    @ApiModelProperty(value = "对方是否在线-0未在线-1在线")
    private Integer isOnline;

    @ApiModelProperty(value = "当前聊天框消息数量")
    private Integer msgNum;

    @ApiModelProperty(value = "当前聊天是否缺少连接前发送的消息-0未缺-1缺少")
    private Integer isLack;

    @ApiModelProperty(value = "具体消息类型：0正常文字，1图片音频等，2纯语音消息")
    private Integer msgDetailType;

    @ApiModelProperty(value = "用于加载历史纪录，获取用户拥有的最小chatId")
    private Integer chatId;
}
